﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using BabyPlan.Common;
using BabyPlan.Meta;

namespace BabyPlan.WcfService
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IReplyService”。
    [ServiceContract]
    public interface IReplyService
    {
        [OperationContract]
        RespResult Bless(string content);
        [OperationContract]
        AdvancedResult<int> GetBBPostReplyNum(int bbPostID);
        [OperationContract]
        AdvancedResult<int> GetMyBBReplyNum(string token);
        [OperationContract]
        AdvancedResult<PageEntity<GenReply>> LoadReplyListByBBPostID(int bbPostID, int pageInex, int pageSize);
        [OperationContract]
        AdvancedResult<PageEntity<GenReply>> LoadMyBBReplyList(string token, int pageInex, int pageSize);
        [OperationContract]
        RespResult ReplyBBPost(int bbPostID, int refReplyID, string Content, string token);
        [OperationContract]
        AdvancedResult<GenReply> Get(int rid);
        [OperationContract]
        AdvancedResult<List<GenReply>> LoadAllReplyList();
    }
}
